﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace IceDog.WebApi.AnythingApi.Controllers
{
    /// <summary>
    /// Vae
    /// </summary>
    [Route("[controller]")]
    [ApiController]
    public class VaeManager : ControllerBase
    {
        /// <summary>
        /// Get请求
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        [ProducesResponseType(StatusCodes.Status200OK)]
        public ActionResult Get()
        {
            return Ok("许嵩");
        }
        /// <summary>
        /// Get请求
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        [ProducesResponseType(StatusCodes.Status200OK)]
        [Route("hi")]
        public ActionResult Hi([FromQuery]string name)
        {
            return Ok("Hi，"+name);
        }
    }
}